﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ExampleApp.Messages;
using StyleMVVM.DependencyInjection;
using StyleMVVM.Messenger;
using StyleMVVM.ViewModel;

namespace ExampleApp.ViewModels
{
	public class MessengerLeftSideViewModel : BaseViewModel
	{
		private string textMessage = "Click the Send button ... Woo Hoo!";
		
		public string TextMessage
		{
			get { return textMessage; }
			set { SetProperty(ref textMessage, value); }
		}
		
		public void SendMessage()
		{
			DispatchedMessenger.Instance.Send(new TextMessage {Text = TextMessage});
		}
	}
}
